package com.wkg.springblogdemo.service;


import com.wkg.springblogdemo.pojo.request.UserLoginRequest;
import com.wkg.springblogdemo.pojo.response.UserInfoResponse;
import com.wkg.springblogdemo.pojo.response.UserLoginResponse;
import jakarta.validation.constraints.NotNull;

public interface UserService {
    UserLoginResponse login(UserLoginRequest userLoginRequest);

    UserInfoResponse getUserInfo(@NotNull(message = "userId不能为空") Integer userId);

    UserInfoResponse getAuthorInfo(@NotNull(message = "userId不能为空") Integer blogId);
}
